import 'package:equatable/equatable.dart';
import 'package:floor/floor.dart';

abstract class BaseModel with EquatableMixin {
  @PrimaryKey(autoGenerate: true)
  @ColumnInfo(name: '_id')
  late int? id;
  @ColumnInfo(name: 'date_created')
  late int? dateCreated;
  @ColumnInfo(name: 'date_modified')
  late int? dateModified;
  late String? address;

  BaseModel({this.id, this.dateCreated, this.dateModified, this.address});

  bool from(Map map);
  fromList(dynamic maps) {}
  toMap() {}
}